#!/usr/bin/env python
import os
sid = os.environ['SAPSYSTEMNAME']
availFile = os.path.join('/usr/sap/',sid,'DVEBMGS00/work/available.log')
with open(availFile) as f:
	status = f.readlines()[-1]
if status[0] == 'A':
	pass
elif status[0] == 'U':
	pass
